<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="br.terminalrodoviario.BusStation"%>
<%@page import="br.terminalrodoviario.City"%>
<%@page import="java.util.*, java.text.*" %>
<jsp:useBean class="br.terminalrodoviario.BusStation" id="BusStation" scope="page"/>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Guia Terminal Rodoviário</title>

        <%
                    String id = request.getParameter("id");
                    if (id != null) {
                        BusStation = new BusStation().selectById("Select c from BusStation c where c.id = " + id);
                    }
        %>

        <style type="text/css" rel="stylesheet">
            @import url("add/css/cssAdmin.css");
            @import url("add/css/cod.css");
            @import url("../add/css/rodape.css");
        </style>
        <script type="text/javascript" src="add/js/jquery.js"></script>

        <script type="text/javascript" src="add/js/jquery.innerfade.js"></script>

        <script type="text/javascript" src="add/js/config.js"></script>
    </head>

    <body>

        <div class="geral">
            <table>
                <tr>
                    <td>
                        <div id="cabecalho"></div>
                    </td>
                </tr>
            </table>
            <div style="float:left">
                &nbsp;&nbsp;<b><a href="index.jsp">Início</a> -> <a href="VMBusStation.jsp">Terminais Rodoviários</a> -> <a href="VFBusStation.jsp?id=<%=request.getParameter("id")%>">Dados do Terminal Rodoviário</a></b>
            </div>
            <div align="right" style="font-family:calibri; font-size:13px;"><a href="Company/login.jsp">Área Restrita</a>&nbsp;&nbsp;&nbsp;</div>
            <table>
                <tr>
                    <td>
                        <div>
                            <ul class="menu">
                                <li><a href="index.jsp"><b>início</b></a></li>
                                <li><a href="VMCompany.jsp"><b>empresas</b></a></li>
                                <li class="current"><a href="VMBusStation.jsp"><b>terminais rodoviários</b></a></li>
                                <li><a href="VMHotel.jsp"><b>hotéis</b></a></li>
                                <li><a href="VMNotice.jsp"><b>notícias</b></a></li>
                                <li><a href="VMTravelTip.jsp"><b>dicas de viagem</b></a></li>
                            </ul>
                        </div>
                    </td>
                </tr>
            </table>
                        
                <%SimpleDateFormat formatBra = new SimpleDateFormat("dd/MM/yyyy");%>

                <table width="765">
                    <tr>
                        <td>
                            <div style="float:left">
                                <table id="subTitulo2">
                                    <tr>
                                        <td id="icone" align="center">
                                            <img src="add/images/icones/bus_station.png" alt="Terminal Rodoviário" title="Terminal Rodoviário"/>
                                        </td>
                                        <td>
                                            Terminais Rodoviários
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                </table>

                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="label_bg" style="width:150px;">&nbsp;&nbsp;Nome:</td>
                        <td >&nbsp;&nbsp;<%=BusStation.getName() == null ? "" : BusStation.getName()%></td>
                    </tr>
                    <tr>
                        <td class="label">&nbsp;&nbsp;Cidade:</td>
                        <td >&nbsp;&nbsp;<%=BusStation.getCity().getFullName() == null ? "" : BusStation.getCity().getFullName()%></td>
                    </tr>
                    <tr>
                        <td class="label_bg">&nbsp;&nbsp;Histórico</td>
                        <td >&nbsp;&nbsp;<%=BusStation.getHistoric() == null ? "" : BusStation.getHistoric()%></td>
                    </tr>
                    <tr>
                        <td class="label" style="width:150px;">&nbsp;&nbsp;Serviços:</td>
                        <td>&nbsp;&nbsp;<%=BusStation.getServices() == null ? "" : BusStation.getServices()%></td>
                    </tr>
                    <tr>
                        <td class="label_bg" valign="top">&nbsp;&nbsp;Localização:</td>
                        <td>&nbsp;&nbsp;
                            <%if(BusStation.getLocation()!= null){%>
                            <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="<%=BusStation.getLocation()%>"></iframe>
                            <%}%>
                        </td>
                    </tr>                    
                </table>            
            <br/><br/>
            <table id="rodape" style="background-image:url(add/images/rodape.png);">
                <tr>
                </tr>
            </table>
            <table id="btRodape" style="text-decoration: none;" >
                <tr>
                    <td align="center" width="80px">
                        <ul class="btYoutube">
                            <li><a title="Youtube" href="http://www.youtube.com" /></li>
                        </ul>
                    </td >
                    <td align="center" width="80px">
                        <ul class="btOrkut">
                            <li><a title="Orkut" href="http://www.orkut.com" /></li>
                        </ul>
                    </td>
                    <td align="center" width="205px">
                        <ul class="btTwitter">
                            <li><a title="Twitter" href="http://twitter.com" /></li>
                        </ul>
                    </td>
                    <td align="center">
                        <a title="Trabalhe Conosco" class="text" href="Carrer.jsp" >Trabalhe Conosco</a>
                    </td>
                    <td align="center">
                        <a title="Mapa do Site" class="text" href="SiteMap.jsp">Mapa do Site</a>
                    </td>
                    <td align="center">
                        <a title="Contatos" class="text" href="Contact.jsp">Contatos</a>
                    </td>
                </tr>
            </table>
        </div>
    </body>
</html>
